package tag24_12_08.exception;

public class Ex08_ThrowableApi {

	public static void main(String[] args) {
		
		Throwable th = new Throwable("Fehlermeldung");
		System.out.println( th.getMessage());
		th.printStackTrace();
		
		
		System.out.println("-------------------------------------");
		
		
		try{
			if(true) throw th;
			
			System.out.println("Zeile 16");
		}catch(Throwable t){
			t.printStackTrace();
			
		}
		
		System.out.println("End of main");
		
	}

}
